from datetime import datetime


class SampleDO:
    def __init__(
        self,
        id: int,
        operatorId: int,
        operatorName: str,
        uploadTime: str,
        isDelete: str,
        originName: str,
        md5: str,
    ):
        self.id = id
        self.operatorId = operatorId
        self.operatorName = operatorName
        self.uploadTime = uploadTime
        self.isDelete = isDelete
        self.originName = originName
        self.md5 = md5

    def DO2Dict(self):
        return {
            "id": self.id,
            "operator_name": self.operatorName,
            "operator_id": self.operatorId,
            "upload_time": self.uploadTime,
            "is_delete": self.isDelete,
            "origin_name": self.originName,
            "md5": self.md5,
        }
